package com.talkweb.platform.commonapi.entity.db;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;


import com.talkweb.platform.commonapi.entity.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
@Entity
@Table(name = "bpm_orgrolelist") // 设置数据库中表名字
@ApiModel(value = "Role", description = "角色信息表")
public class Role extends BaseEntity{
	

	@Id
	@Column(name = "WF_OrUnid")
	@GeneratedValue(strategy = GenerationType.IDENTITY, generator = "SELECT REPLACE(UUID(),'-','')")
	private String orUnid;
	
	@Column(name = "WF_Appid")
	@ApiModelProperty(value = "所属应用ID", required = true)
	private String appId;
	
	@Column(name = "RoleFolderid")
	@ApiModelProperty(value = "角色层级编号", required = true)
	private String roleFolderId;
	
	@Column(name = "RoleType")
	@ApiModelProperty(value = "角色类型", required = false)
	private String roleType;
	
	@Column(name = "RoleName")
	@ApiModelProperty(value = "角色名称", required = true)
	private String roleName;
	
	@Column(name = "RoleNumber")
	@ApiModelProperty(value = "角色编号", required = true)
	private String roleNumber;
	
	@Column(name = "Remark")
	@ApiModelProperty(value = "备注", required = false)
	private String remark;
	
	@Column(name = "STATUS")
	@ApiModelProperty(value = "状态", required = false)
	private String status;
	
	@Column(name = "WF_Version")
	@ApiModelProperty(value = "版本", required = false)
	private String version;
	
	@Column(name = "SORTNUMBER")
	@ApiModelProperty(value = "排序号", required = false)
	private String sortNumber;

}
